home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 009 (1987-02-15)(Ossowski, Stefan)(DE)(PD).zip / Taifun 009 (1987-02-15)(Ossowski, Stefan)(DE)(PD).adf / HackIconII_Source / mydebug.h < prev    next >
C/C++ Source or Header  |  1987-03-04  |  973b  |  27 lines

  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
  2. * |_o_o|\\ Copyright (c) 1987 The Software Distillery.  All Rights Reserved *
  3. * |. o.| ||          Written by Doug Walker                                 *
  4. * | .  | ||          The Software Distillery                                *
  5. * | o  | ||          235 Trillingham Lane                                   *
  6. * |  . |//           Cary, NC 27511                                         *
  7. * ======             BBS:(919)-471-6436                                     *
  8. \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  9.  
  10.  
  11. /* DEBUG MUST BE DEFINED FOR REAL ELSEWHERE!!! */
  12.  
  13. #ifdef MYDEBUG
  14.  
  15. extern int debug;
  16.  
  17. #define BUG(lvl, args) {if(lvl<=debug){printf args ; fflush(stdout);}}
  18. #define BUGGETC(lvl) {if(lvl<=debug)\
  19.                        {printf("Hit return to continue: ");(void)getchar();}}
  20.  
  21. #else
  22.  
  23. #define BUG(lvl, args) {}
  24. #define BUGGETC(lvl) {}
  25.  
  26. #endif MYDEBUG
  27.